<?php 

$table='htmlplug';
if(mysql_num_rows(mysql_query("SHOW TABLES LIKE '".$table."'"))==1) {
    header("Location: home.php?page=pluginview&p=$_GET[p]&root=add_module.php");
}
else {
mysql_select_db($database_konek, $konek);
$query_add = "CREATE TABLE htmlplug(
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`judul` VARCHAR( 255 ) NOT NULL ,
`konten` TEXT NOT NULL 
)";
$add = mysql_query($query_add, $konek) or die(mysql_error());
header("Location: home.php?page=pluginview&p=$_GET[p]&root=add_module.php");
}

?>
